/*
 * @Description: 就是一个编码添加
 */
import zhreq from "@/api/axios";
export default {
  onlyadd(params, noType) {
    return zhreq.post('/v3/noService/configCode/add', {
      "noRule": `${params}`,
      "cumulativeNum": 0,
      "noType": noType,
      "organizationNo": sessionStorage.organizationNo,
      'cumulative': 0
    });
  },
  // 获取编码规则
  getcoderule(params) {
    return zhreq.post('/v3/noService/configCode/queryByCondition', {
      // "farmingTypeNo": sessionStorage.farmingTypeNo
      "noType": params,
      "organizationNo": sessionStorage.organizationNo
    });
  },
  // 获取编码规则
  codeyByCondition(params) {
    return zhreq.post('/v3/noService/noType/queryByCondition', {
      ...params,
      "organizationNo": sessionStorage.organizationNo
    });
  }
}
